﻿@using FCTC_Web.Utilities
@using DAL
@using FCTC_Web.Models
@model FCTC_Web.Models.Estimator
@{
    ViewBag.Title = "增加评估师";
}

 <link rel="stylesheet" href="@Url.Content("~/Scripts/jquery.wysiwyg.css" )" type="text/css" />
 @Combres.HtmlExtensions.CombresLink("backjsRichEditor")
@* <script src="@Url.Content("~/Scripts/jquery.wysiwyg.js")" type="text/javascript"></script>*@
<style rel="stylesheet">
     textarea{ border:1px #cecece solid; width:98%; height:300px; margin-left:8px;}
</style>
 <script type="text/javascript">
     $(document).ready(function () {

         (function ($) {
             $('#Case').wysiwyg({
                 controls: {
                     strikeThrough: { visible: true },
                     underline: { visible: true },

                     separator00: { visible: true },

                     justifyLeft: { visible: true },
                     justifyCenter: { visible: true },
                     justifyRight: { visible: true },
                     justifyFull: { visible: true },

                     separator01: { visible: true },

                     indent: { visible: true },
                     outdent: { visible: true },

                     separator02: { visible: true },

                     subscript: { visible: true },
                     superscript: { visible: true },

                     separator03: { visible: true },

                     undo: { visible: true },
                     redo: { visible: true },

                     separator04: { visible: true },

                     insertOrderedList: { visible: true },
                     insertUnorderedList: { visible: true },
                     insertHorizontalRule: { visible: true },

                     h4mozilla: { visible: true && $.browser.mozilla, className: 'h4', command: 'heading', arguments: ['h4'], tags: ['h4'], tooltip: "Header 4" },
                     h5mozilla: { visible: true && $.browser.mozilla, className: 'h5', command: 'heading', arguments: ['h5'], tags: ['h5'], tooltip: "Header 5" },
                     h6mozilla: { visible: true && $.browser.mozilla, className: 'h6', command: 'heading', arguments: ['h6'], tags: ['h6'], tooltip: "Header 6" },

                     h4: { visible: true && !($.browser.mozilla), className: 'h4', command: 'formatBlock', arguments: ['<H4>'], tags: ['h4'], tooltip: "Header 4" },
                     h5: { visible: true && !($.browser.mozilla), className: 'h5', command: 'formatBlock', arguments: ['<H5>'], tags: ['h5'], tooltip: "Header 5" },
                     h6: { visible: true && !($.browser.mozilla), className: 'h6', command: 'formatBlock', arguments: ['<H6>'], tags: ['h6'], tooltip: "Header 6" },

                     separator07: { visible: true },

                     cut: { visible: true },
                     copy: { visible: true },
                     paste: { visible: true }
                 }
             });
         })(jQuery);
     });


</script>
 
@Html.ValidationSummary(true)
<fieldset>
    <legend>评估师信息</legend>
    <div class="editor-field">
     @Html.HiddenFor(item=>Model.PersonalID)
    @if (Model == null || Model.Personal == null)
    {
        @Html.Partial(@"~\views\shared\controls\PersonalViewEdit.cshtml", new Personal())
    }
    else
    {
        @Html.Partial(@"~\views\shared\controls\PersonalViewEdit.cshtml", Model.Personal) 
    }

    </div>  
    <table width="90%" style="background-color:#f6fdfd; margin-top:20px;"  align="center">
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(i=>i.Shop.FullName)：</span>
        </td>
        <td>
            <span class="headtitles">@Html.DropDownList("ShopID", "--请选择--")</span>
            @Html.ValidationMessageFor(model => model.ShopID)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.WorkPhone)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.WorkPhone)</span>
            @Html.ValidationMessageFor(model => model.WorkPhone)
        </td>
    </tr>
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.MainPageUrl)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.MainPageUrl)</span>
            @Html.ValidationMessageFor(model => model.MainPageUrl)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.WorkingExperience)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.WorkingExperience)</span>
            @Html.ValidationMessageFor(model => model.WorkingExperience)
        </td>
    </tr>
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.CertificationNumber)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.CertificationNumber)</span>
            @Html.ValidationMessageFor(model => model.CertificationNumber)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.EstimatorLevel)：</span>
        </td>
        <td>
            <span class="headtitles">@Html.DropDownListFor(model => model.EstimatorLevel, new SelectList(new List<string>{  
                      "首席评估师", 
                       "高级评估师", 
                       "中级评估师",
                       "评估师助理"
                        }), "--请选择--")</span>
            @Html.ValidationMessageFor(model => model.EstimatorLevel)
        </td>
    </tr>
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Level)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.Level)</span>
            @Html.ValidationMessageFor(model => model.Level)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Medal)：</span>
        </td>
        <td>
                  <span class="headtitles">@Html.DropDownListFor(model => model.Medal, new SelectList(new List<string>{  
                      "一级", 
                      "二级", 
                      "三级",
                      "四级"
                        }), "--请选择--")</span>
            @Html.ValidationMessageFor(model => model.Medal)
        </td>
    </tr>
    <tr>
    <td style="width:150px; text-align:right;"> <span class="headtitle">@Html.LabelFor(model => model.HasTrustMedal)：</span></td>
    <td>
           <span class="ie6">
                    @Html.EditorFor(model => model.HasTrustMedal)
                    @Html.ValidationMessageFor(model => model.HasTrustMedal)
                </span>
    </td>
    <td style="width:150px; text-align:right;"> <span class="headtitle">@Html.LabelFor(model => model.HasOutStandingMedal)：</span></td>
    <td>
           <span class="ie6">
                    @Html.EditorFor(model => model.HasOutStandingMedal)
                    @Html.ValidationMessageFor(model => model.HasOutStandingMedal)
                </span>
    </td>
    </tr>
     <tr>
    <td style="width:150px; text-align:right;"> <span class="headtitle">职位：</span></td>
    <td>
           <span class="ie6">
                    @Html.EditorFor(model => model.Title)
                    @Html.ValidationMessageFor(model => model.Title)
                </span>
    </td>
    <td style="width:150px; text-align:right;"> <span class="headtitle"></span></td>
    <td>
           <span class="ie6">
                </span>
    </td>
    </tr>
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Description)：</span>
        </td>
        <td>
            <span class="txt">@Html.TextAreaFor(model => model.Description)</span>
            @Html.ValidationMessageFor(model => model.Description)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Familiar)：</span>
        </td>
        <td>
            <span class="txt">@Html.TextAreaFor(model => model.Familiar)</span>
            @Html.ValidationMessageFor(model => model.Familiar)
        </td>
    </tr>
    <tr>
    <td>案例:</td>
     <td  colspan="3">   
      <div class="editor-field">
                    @Html.TextAreaFor(model => model.Case)
                    @Html.ValidationMessageFor(model => model.Case)
                </div></td>
    </tr>
    </table>  
</fieldset>
<fieldset>
    <legend>个性</legend>

    <table width="90%" style="background-color:#f6fdfd; margin-top:20px;"  align="center">
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Horoscope)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.Horoscope)</span>
            @Html.ValidationMessageFor(model => model.Horoscope)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Motto)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.Motto)</span>
            @Html.ValidationMessageFor(model => model.Motto)
        </td>
    </tr>
    <tr>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.Habit)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.Habit)</span>
            @Html.ValidationMessageFor(model => model.Habit)
        </td>
        <td style="width:150px; text-align:right;">
            <span class="headtitle">@Html.LabelFor(model => model.IdiaCar)：</span>
        </td>
        <td>
            <span class="ie6">@Html.EditorFor(model => model.IdiaCar)</span>
            @Html.ValidationMessageFor(model => model.IdiaCar)
        </td>
    </tr>
    </table>  
</fieldset>
@Html.Partial(@"~\views\shared\controls\otherschange.cshtml",Model)
<p>
    <input type="submit" value="保存" />
</p>
@Html.ActionLink("回到列表", "Index")
